package security.Roles;

public class SimpleAuthenticationToken implements AuthenticationToken {

	private String token;
	private String username;
	
	public SimpleAuthenticationToken(String username, String password) {
		this.token = username + ":" + password; 
		this.username = username;
	}
	
	public String encrypted() {
		return this.token;
	}
	
	public String getUsername() {
		return this.username;
	}
	
	public boolean equals(AuthenticationToken other) {
		return (this.token.equals(other.toString()));
	}

}
